<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>选择称量模式</title>
</head>
<body>
<div style="padding: 10px">
    <div class="bootstrap-table table">
        <div class="table-responsive">
            <table id="weighingModeTable" data-toggle="table"
                   data-click-to-select="true"
                   data-striped="true"
                   data-pagination="false"
                   data-row-style="rowStyle"
                   data-cell-style="cellStyle"
                   data-unique-id="id">
                <thead>
                <tr>
                    <th data-field="state" data-radio="true"></th>
                    <th data-field="id" data-visible="false"></th>
                    <th data-field="name">称量模式</th>
                </tr>
                </thead>
            </table>
        </div>
    </div>
    <div class="form-group" style = "margin-top: 15px">
        <div class="col-md-12">
            <div class="col-md-6" style="text-align: right">
                <button type="button" id="seleWeighModeConfirm" class="btn btn-lg btn-primary">确定</button>
            </div>
            <div class="col-md-6" style="text-align: center">
                <button type="button" id="seleWeighModeCancel" class="btn btn-lg btn-primary">取消</button>
            </div>
        </div>
    </div>
</div>
</body>
<script>
    $(document).ready(function(){
        var serverUrl = serverPath + "weighing/findAllWeighingMode";
        var param = '';
        ibcpAjax.Select(serverUrl,param,true,function(result){
            var data = result.data;
            $('#weighingModeTable').bootstrapTable();
            $('#weighingModeTable').bootstrapTable('load',data);
        });
    })
</script>
</html>